<html><head><title>CopyLight</title></head>
<body bgcolor="#EFF1F0" link="#3A3966" vlink="#000000" alink="#000000">
<font face="Verdana, sans-serif" size="2"><p align="center"><b><font size="4">CopyLight()</font></b></p>
<p><b>Syntax</b></p><blockquote>
Result = <font color="#3A3966"><b>CopyLight</b></font>(#Light, #NewLight)</blockquote>

<b>Description</b><br><blockquote>

Creates a new light which is the exact copy of the specified light. All light 
attributes such as: color, specular color, position etc. are duplicated. 

</blockquote><p><b>Parameters</b></p><blockquote>
<style type="text/css">
table.parameters { border-spacing: 0px; border-style: none; border-collapse: collapse; }
table.parameters td { border-width: 1px; padding: 6px; border-style: solid; border-color: gray; vertical-align: top; font-family:Arial; font-size:10pt; }
</style>
<table width="90%" class="parameters">
<tr><td width="10%"><i>#Light</i></td>
<td width="90%"> 
The light to copy. 

</td></tr>
<tr><td><i>#NewLight</i></td>
<td> 
A number to identify the new light. 
<a href="../reference/purebasic_objects.html">#PB_Any</a> can be used to auto-generate this number. 

</td></tr>
</table>
</blockquote><p><b>Return value</b></p><blockquote>

Nonzero if the light was successfully duplicated, zero otherwise. If <font color="#924B72">#PB_Any</font> was used 
for the #NewLight parameter then the generated number is returned on success. 

</Blockquote><p><b>Supported OS </b><Blockquote>All</Blockquote></p><center><a href="index.html">Light Index</a> - <a href="createlight.html">CreateLight()</a> -><br><br>

</body></html>